<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Insert title here</title>
    <base href="<%=basePath%>"/>
    <link rel="stylesheet" href="css/pintuer.css">
    <link rel="stylesheet" href="css/admin.css">
    <script src="js/jquery.js"></script>
    <script src="js/pintuer.js"></script>
</head>
<body>
<div class="panel admin-panel">
    <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>分配角色用户：<font
            color="red">${user.name }</font>&nbsp;&nbsp;&nbsp;&nbsp;${message }</strong></div>
    <div class="body-content">
        <form method="post" class="form-x" action="<%=basePath%>roleController.do?method=FPRole">
            <input type="hidden" name="user_idStr" value="${user.user_id }">


            <div class="form-group">
                <div class="label">
                    <label>角色列表:</label>
                </div>
                <div class="field">

                    <c:forEach items="${roleList_db}" var="role">

                        <input name="role_idSTR" type="radio" id="role_idSTR" VALUE="${role.role_id}"
                               <c:if test="${role.role_id==XZRole.role_id}">checked="checked"</c:if>
                        />${role.name}
                    </c:forEach>
                    <div class="tips"></div>
                </div>
            </div>

            <div class="form-group">
                <div class="label">
                    <label></label>
                </div>
                <div class="field">
                    <button class="button bg-main icon-check-square-o" type="submit"> 分配角色</button>
                </div>
            </div>
        </form>
    </div>
</div>

</body>
</html>